Domain ID/index mapping in xenmon.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 10 Jul 2006 15:09:20 +0000 (16:09 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 10 Jul 2006 15:09:20 +0000 (16:09 +0100)
commit16b671d72bd6836dd09c21feb238d9abe4034b2d
treebd05579838f0680347f28362c2b44c49bb892115
parentc11016e71cb6173a5666428fc4f7cc691db38571
Domain ID/index mapping in xenmon.

This patch addresses the problem of xenbaked/xenmon not dealing with
large domain ID's. Xen Domain ID's increase monotonically as domains
are created; The ID's are not (often) recycled. Xenbaked was using the
domain
ID's as indices to arrays of data, and this scheme blows up as soon as
a domain ID exceeds the array size. Code has been changed in xenbaked
and xenmon to isolate domain id's from array indices, so everything is
indirect. Users should not notice any difference in behavior.

From: Rob Gardner <rob.gardner@hp.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/xenmon/xenbaked.c
tools/xenmon/xenmon.py